home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / REFRESH.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef refresh
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_refresh = "$Header: c:/curses/portable/RCS/refresh.c%v 2.0 1992/11/15 03:29:10 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   refresh()    - refresh window
  15.  
  16.   X/Open Description:
  17.        The routine wrefresh copies the named window to the physical
  18.        terminal screen, taking into account what is already there in
  19.        order to optimize cursor movement.
  20.  
  21.        The routine refresh does the same, using stdscr as a default
  22.        screen.
  23.  
  24.        These routines must be called to get any output on the
  25.        terminal, as other routines only manipulate data structures.
  26.  
  27.        Unless leaveok has been enabled, the physical cursor of the
  28.        terminal is left at the location of the window's cursor.
  29.  
  30.   X/Open Return Value:
  31.        The refresh() function returns OK on success and ERR on error.
  32.  
  33.   X/Open Errors:
  34.        No errors are defined for this function.
  35.  
  36.   Portability:
  37.        PDCurses        int refresh( void );
  38.        X/Open Dec '88  int refresh( void );
  39.        BSD Curses      int refresh( void );
  40.        SYS V Curses    int refresh( void );
  41.  
  42. **man-end**********************************************************************/
  43.  
  44. int    refresh( void )
  45. {
  46.        return( wrefresh(stdscr) );
  47. }
  48.